<%@ page language="java" import="java.util.*" pageEncoding="GB2312" contentType="text/html; charset=GB2312"%>
<%@page import="org.lab.listener.PictureListener;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'img.jsp' starting page</title>
    <script type="text/javascript" src="<%=path %>/js/jquery.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=path %>/css/styles.css">
<%
request.setCharacterEncoding("ISO-8859-1");
String name2 = "";
String name1 = "";
if(request.getParameter("name1")!=null){ 
name2 = request.getParameter("name1");
 name1 = new String(name2.getBytes("ISO-8859-1"),"GB2312");
 System.out.println("the name1 is :"+name1);
 System.out.println("the name2 is :"+name2);
 System.out.println("weeeeeeee" + new String(name1.getBytes("ISO-8859-1")));
response.setContentType("text/html;charset=GB2312");
%>
<script type="text/javascript">

	$(document).ready(function(){
		parent.lower_left.location.href="<%=path %>/web/parser.jsp?name1=<%=name1 %>";
	});
	$(document).ready(function(){
		parent.right_bottom.location.href="<%=path %>/web/classify.jsp?name1=<%=name1 %>";
	});
</script>
<%} %>
  </head>
  
  <body >
  
    <div align="center" style="margin-top: 15px; margin:0 auto;">
    	<%if(request.getParameter("name1")!=null){ 
    	Integer pic = new PictureListener().picListener().get(name1);
    	System.out.println("the picture num is :" + pic);%>
    	<img src="<%=path %>/pdmodel/<%=pic %>.bmp" align="middle" height="300px">
    	<%} %>
    </div>
  </body>
</html>
